home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RRRREEEEGGGGCCCCMMMMPPPP((((1111)))) RRRREEEEGGGGCCCCMMMMPPPP((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- regcmp - regular expression compile
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- rrrreeeeggggccccmmmmpppp [ ---- ] files
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _r_e_g_c_m_p command performs a function similar to _r_e_g_c_m_p(3X) and, in most
- cases, precludes the need for calling _r_e_g_c_m_p(3X) from C programs. This
- saves on both execution time and program size. The command _r_e_g_c_m_p
- compiles the regular expressions in _f_i_l_e and places the output in _f_i_l_e....iiii.
- If the ---- option is used, the output will be placed in _f_i_l_e....cccc. The format
- of entries in _f_i_l_e is a name (C variable) followed by one or more blanks
- followed by a regular expression enclosed in double quotes. The output
- of _r_e_g_c_m_p is C source code. Compiled regular expressions are represented
- as eeeexxxxtttteeeerrrrnnnn cccchhhhaaaarrrr vectors. _F_i_l_e....iiii files may thus be _i_n_c_l_u_d_e_d in C programs,
- or _f_i_l_e....cccc files may be compiled and later loaded. In the C program which
- uses the _r_e_g_c_m_p output, _r_e_g_e_x(_a_b_c,_l_i_n_e) will apply the regular expression
- named _a_b_c to _l_i_n_e. Diagnostics are self-explanatory.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- name "([A-Za-z][A-Za-z0-9_]*)$0"
-
- telno "\({0,1}([2-9][01][1-9])$0\){0,1} *"
- "([2-9][0-9]{2})$1[ -]{0,1}"
- "([0-9]{4})$2"
-
- In the C program that uses the _r_e_g_c_m_p output,
-
- regex(telno, line, area, exch, rest)
-
- will apply the regular expression named _t_e_l_n_o to _l_i_n_e.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- regcmp(3G).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-